package common.base;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-8-13
 * Time: 上午7:19
 * To change this template use File | Settings | File Templates.
 */
public enum CheckResultType {
    OK(0, "正确"), 
    USERNAME_OR_PASSWORD_NULL(1, "用户名或者密码空"), 
    USERNAME_NOT_EXSISTED(2, "用户名不存在"), 
    PASSWORD_ERROR(3, "密码错误"), 
    USER_TYPE_INVALID(4, "用户类型不合法"),
    USER_AUTH_INVALID(5,"不具有访问系统权限"),
    USER_TYPE_ERROR(6,"用户类型不正确");

    public int value;
    public String message;

    CheckResultType(int value, String message) {
        this.value = value;
        this.message = message;
    }

    @Override
    public String toString() {
        return "value:" + this.value + ", message:" + message;
    }
}